package com.sxhnpg.manager;

import java.util.List;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sxhnpg.dao.BaseDao;
import com.sxhnpg.dao.UserDao;
import com.sxhnpg.model.User;


public class UserManager extends BaseManager{

	private UserDao userDao;
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	public UserDao getUserDao() {
		return userDao;
	}
	public BaseDao getEntityDao() {
		return this.userDao;
	}
	
	// 有登录权限
	public User find(String userid){
		return userDao.find(userid);
	}
	// 查出用户信息
	public User findUser(String userid){
		return userDao.findUser(userid);
	}
	
	public List<User> findUserList(){
		return userDao.findUserList();
	}
	
}
